Revoke Privilege From Role
This operation revokes a privilege from a role at the global, database, or collection level.
The base URL for this API is in the following format:
http://localhost:19530
export CLUSTER_ENDPOINT="http://localhost:19530"The authentication token should be a pair of colon-joined username and password, like username:password. If you are using a project endpoint, only a valid API key with sufficient permissions applies.
The name of the role.
The privilege to grant or revoke.
The name of the database to which the privilege applies. Use * for all databases.
The name of the collection to which the privilege applies. Use * for all collections.
export TOKEN="root:Milvus"
curl --request POST \--url "${CLUSTER_ENDPOINT}/v2/vectordb/roles/revoke_privilege_v2" \--header "Authorization: Bearer ${TOKEN}" \--header "Request-Timeout: 5" \--header "Content-Type: application/json" \-d '{ "roleName": "my_role", "privilege": "Insert", "dbName": "my_database", "collectionName": "my_collection"}'None
A generic response envelope used by operations that return no substantial payload.
Response code.
Payload object of the response envelope. It holds the result content of the operation.
Returns an error message.
Response code.
Error message.
{ "code": 0, "data": {}}